<%--
说明：资源信息表 增加/修改(网络设备)页面

@author liuxun 2013-05-06
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>网络设备信息</title>

<style type="text/css">
.buttonwhite_60_23 {
	background-image: url(Images/buttonwhite_60_23.gif );
	cursor: hand;
	height: 23px;
	width: 60px;
	border: 0px solid black;
	FONT-SIZE: 12px;
	COLOR: #313031;
	FONT-FAMILY: 宋体;
	padding-top: 2px;
}

.inputText {
	border-width: thin;
	border-color: silver;
	color: #0f619d;
	font-size: 13px;
	height: 20px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
	border-style: solid;
	background-color: transparent;
	text-align: right
}

.inputLeft {
	border-width: thin;
	border-color: silver;
	color: #0f619d;
	font-size: 13px;
	height: 20px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
	border-style: solid;
	background-color: transparent;
}

.HeadStyle {
	background-color: #0f619d;
	color: #FFFFFF;
	font-weight: bold;
	font-size: 15px;
	height: 25px;
	text-align: center;
	border-color: #CFDCEF;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
	border-style: solid;
}

.RowStyle {
	background-color: #f8fbfc;
	color: #2D6FA9;
	font-weight: normal;
	font-size: 12px;
	height: 20px;
	text-align: Left;
}

.MyRow {
	background-color: #f8fbfc;
	color: #2D6FA9;
	font-weight: normal;
	font-size: 12px;
	height: 20px;
	text-align: Left;
}

.tableRow {
	border-color: #CFDCEF;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
	border-style: solid;
	border-width: 1px;
}
</style>

<script src="jsp/rscaccount/c_rsc/c_rsc_network_devices_edit.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>

  <form id="opeForm" name="opeForm" method="post" action="">

    <%-- 操作类型 0录入 1修改 --%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> 
    <input type="hidden" id="rsc_id" name="model.rsc_id" value="${model.rsc_id}" /> 
    <input type="hidden" id="rsc_grp_id" name="model.rsc_grp_id" value="${model.rsc_grp_id}" />
    <c:if test="${operationType == 1 || operationType == 6}">
		<input type="hidden" id="manage_acc" name="model.manage_acc" value="${model.manage_acc}" />
		<input type="hidden" id="rsc_type" name="model.rsc_type" value="${model.rsc_type}" />
		<input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
    </c:if>     

    <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <%--编辑页面名称标题表格--%>
          <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>网络设备信息</font>
              </td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table> <%--编辑部分表格--%>
          <table border="0" align="center" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table border="0" align="center" cellpadding="0" cellspacing="0" class="editMainTable">
                  <tr>
                    <td style="height: 40px;" colspan="3" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">节点名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap" style="width: 20%;">
                    	<c:if test="${operationType==1 || operationType == 6}">
                    		<ext:property cachetype="P_NODE" resultprop="node_name" condnames="node_code" condvalues="${model.node_id}" />
                    	</c:if>
                    	<c:if test="${operationType==0}">
                    		<ext:select id="node_id" name="model.node_id" cachetype="P_NODE" nameprop="node_name" valueprop="node_code" condnames="node_status" condvalues="01" initvalue="${model.node_id}" event="onchange='itemOnChange()'" style="width:150px" orderby="node_code desc" cannull="1" />
                    	</c:if>                    	
                    </td>
                    <td class="editMainTD" align="left" nowrap="nowrap" style="width: 100%;">
                    &nbsp;<span><font color="red"><c:if test="${operationType == 0}">*</c:if></font>&nbsp;</span>
                    </td>
                  </tr>                  

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源组：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap" style="width: 20%;">
                    <input type="text" id="rsc_grp_name" required="true" validType="" readonly="readonly"  class="easyui-validatebox  editMainText" value="${model.rsc_grp_name}" maxlength=150 /> <img onclick="select_c_rsc_grp();" style="cursor: hand" title="选择" src="<c:url value="/images/eclipse/select.gif" />" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap" style="width: 100%;">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>
				
                  <tr>
                    <td class="editMainLabelTD" align="right">资源名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="rsc_name" name="model.rsc_name" required="true" validType="" class="easyui-validatebox  editMainText" value="${model.rsc_name}" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">管理IP：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="manage_ip" name="model.manage_ip" required="true" validType="checkIp" class="easyui-validatebox  editMainText" value="${model.manage_ip}" maxlength=15/></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">服务IP：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="service_ip" name="model.service_ip" required="true" validType="checkIp" class="easyui-validatebox  editMainText" value="${model.service_ip}" maxlength=15/></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源状态：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <ext:select id="rsc_status" name="model.rsc_status" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" condnames="type_code" condvalues="114" initvalue="${model.rsc_status}" excludevalue="03" style="width:150px" orderby="type_value_code" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>
                   
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源类型：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<c:if test="${operationType == 1 || operationType == 6}">
                    		<%-- 
                    		<ext:select id="rsc_type" name="model.rsc_type" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" condnames="type_code;type_value_code" condvalues="142;${model.rsc_type}" style="width:150px" orderby="type_value_code" cannull="0" />
                    		--%>
                    		<ext:property cachetype="P_TYPE_VALUE" resultprop="type_value_name" condnames="type_code;type_value_code" condvalues="142;${model.rsc_type}" />
                    	</c:if>
                    	<c:if test="${operationType == 0 }">
                    		<ext:select id="rsc_type" name="model.rsc_type" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" condnames="type_code" condvalues="142" initvalue="${model.rsc_type}" style="width:150px" orderby="type_value_order" cannull="1" />
                    	</c:if>                    	
                    	
                    </td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源等级：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><ext:select id="rsc_level" name="model.rsc_level" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" condnames="type_code" condvalues="123" initvalue="${model.rsc_level}" style="width:150px" orderby="type_value_code" cannull="0" /> </td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span></td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">管理账号：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                      <span id="privilege">
                      <c:if test="${operationType == 0}">
                      	<input type="text" id="manage_acc" name="model.manage_acc"  validType="" class="easyui-validatebox  editMainText" value="${model.manage_acc }" maxlength="50">
                      </c:if>
                      <c:if test="${operationType == 1 || operationType == 6}">
                      	${model.manage_acc }
                      </c:if>                      
                      </span>
                    </td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<c:if test="${operationType == 0}">&nbsp;<span><font color="red">*</font></span>
                    		<INPUT TYPE="checkbox" id="no_acc_mode" onclick="changeNoAccMode()">无账号模式
                    	</c:if>
                    </td>
                  </tr>
                  
                  <c:if test="${operationType == 0 || operationType == 6}">
                    <tr>
                      <td class="editMainLabelTD" align="right" style="width: 40%;">口令：&nbsp;</td>
                      <td class="editMainTD" align="left" nowrap="nowrap">
                      <span id="pass">
                      	<input type="password" id="password" name="model.password" required="true" validType="maxLength[20]" class="easyui-validatebox  editMainText" value="${model.password}" />
                      </span>&nbsp;
                      </td>
                      <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*</font> </span>
                      <INPUT TYPE="checkbox" id="showPass" onclick="passwordTypeChange()">显示字符(H) </span></td>
                    </tr>
                  <tr id="en_pwd_tr">
                    <td class="editMainLabelTD" align="right" style="width: 40%;">EN口令：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="password" id="en_passwd" name="model.en_passwd" validType="maxLength[20]"  class="easyui-validatebox  editMainText" value="${model.en_passwd}" />
                    </td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red"></font> </span></td>
                  </tr>                    
                  </c:if>
                  
                  <c:if test="${operationType == 1 }">
                    <tr>
                      <td class="editMainLabelTD" align="right" style="width: 40%;">口令：&nbsp;</td>
                      <td class="editMainTD" align="left" nowrap="nowrap">
                      <span id="editPass">
                      	<input type="password" id="password" name="model.password" disabled="true" validType="maxLength[20]"  class="easyui-validatebox  editMainText" value="${model.password}" />
                      </span> &nbsp;
                      
                      </td>
                      <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">*
                        <input type="checkbox" id="is_modify_password" name="model.is_modify_password" value="1"></input>修改口令</font> </span>
                      	<INPUT TYPE="checkbox" id="showEditPass" onclick="editPasswordTypeChange()">显示字符(H)</td>
                    </tr>
                  <tr id="en_pwd_tr">
                    <td class="editMainLabelTD" align="right" style="width: 40%;">EN口令：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="password" id="en_passwd" name="model.en_passwd" disabled="true" validType="maxLength[20]"  class="easyui-validatebox  editMainText" value="${model.en_passwd}" />
                    </td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;<span><font color="red">
                    	<input type="checkbox" id="is_modify_en_pwd" name="model.is_modify_en_pwd" value="1"></input>修改口令</font> </span></td>
                  </tr>                        
                  </c:if>
                  
              	  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">HTTP(S)_URL：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="text" id="http_url" name="model.http_url" validType="" class="easyui-validatebox  editMainText" value="${model.http_url}" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;</td>
                  </tr>      
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源索引：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="text" id="rsc_no" name="model.rsc_no" validType="" class="easyui-validatebox  editMainText" value="${model.rsc_no}" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;</td>
                  </tr>
                  <tr>                                  
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">描述：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="rsc_desc" name="model.rsc_desc" validType="" class="easyui-validatebox  editMainText" value="${model.rsc_desc}" /></td>
                    <td class="editMainTD" align="left" nowrap="nowrap">&nbsp;</td>
                  </tr>
                  <tr>
                    <td class="editMainTD" colspan="3">
                      <table id="resultTable" class="sortable" width="50%" border="1" align="center" cellPadding="0" cellSpacing="0" borderColorLight="#cccccc" borderColorDark="#ffffff">
                        <thead>
                          <tr class="HeadStyle" >
                          	<td nowrap width="25">选择</td>
                            <td nowrap width="50%">协议</td>
                            <td nowrap width="30%">端口</td>
                          </tr>
                        </thead>
                        <tbody>
                         
                        </tbody>
                      </table>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainConstTD" colspan="3">&nbsp;&nbsp;说明：带<span><font color="red">*</font> </span>的项目是必须填写项</td>
                  </tr>
                  <tr>
                    <td style="height: 40px;" colspan="3" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="3" class="editMainBottomTD">&nbsp;
                      <div style="text-align: center; padding: 5px;">
                        <a href="javascript:void(0)" id="okBtn" icon="icon-save" class="easyui-linkbutton">保存</a> <a href="javascript:void(0)" id="cancelBtn" icon="icon-cancel" class="easyui-linkbutton">取消</a>
                      </div>
                    </td>
                  </tr>
                  
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </form>

</body>
</html>